package cn.wzvtcsoft.common.property;

import java.util.HashSet;
import java.util.Set;

/**
 * @author swxu_2005@163.com
 */
public class SecurityProperties {

  private Set<String> authorizedAfterLogin = new HashSet<>();

  public void setOnlyNeedLogin(String urlStr) {
    String[] urls = urlStr.split(",");
    for (String url : urls) {
      authorizedAfterLogin.add(url.trim());
    }
  }

  public Set<String> getAuthorizedAfterLogin() {
    return this.authorizedAfterLogin;
  }
}
